setting up maven build for stand alone library, set content to readme.md
and fix some problems with sub queries and comparators