adding error handling to API
added error handling for matcher
more error handling
testing index structure
start of better reverse index