added markdown readme

added markdown readme, minor code cleanup for indexer