Added missing afterGetQuery hook, fixed error messages
Docuentation FINISHED