Notes on a class of simple $C^*$-algebras with real rank zero