Develop query

renamed readpoints() to query()