removed some logging
fixed typo and made error handling a bit better
RESTful headers and user error messages