Wrote the main method of Query.java and hooked it up to both the QueryEngine and the SimpleParser. There seems to be a problem with the Buffer.position call in QueryEngine