Added type-safety by removing raw usage of classes
Eliminated deprecated usage of IndexReader.open() replacing with
DirectoryReader.open()
Suppressed all warnings related to unused local methods.
Removing unused imports