updated readme
correct undefined checks
Undo undefined checks from last commit.
Done refactoring functionality to sumbodules. Index & progress currently broken.