working function for createIndex
commit of final cfileIndexer.cpp and .h files man git commit