Changed Ajx error handler to show the response body as an error message
Extended phpdoc, minor changes to template