updated documentation
updated query mechanism and processing of where statement passed as a query string