fixed Makefile and add simpleIndexing