Completed InvertedIndex App. Tested as well.