implemented the findbyindex function
deleted files that were supposed to be created on a separate branch
cleaned up and rearranged everything into multiple files
cleaned up makefile and went back to the old way