Removed bug in queryForAll and added improved POM file