outfactored index file functions to separate helper file
added IndexFileHelper to base generator