indexing: started adding unit tests it doesn't pass yet
indexing: fixed bugs in utility class
indexing: minor formatting
indexing: adding junit tests for utility class