Added license
Moved interface to implementation
Add license and javadoc
Add license, javadoc. Refactored. Move query
Created interface for query service
Moved query to own class, refactored to interface
Created implementation of query interface
Removed unneeded imports
Removed unneeded imports
Removed unneeded imports and private field
Removed debugging, unneeded imports. Add javadoc
Changes based on API refactoring