Fix for the query interface
updated readme