Improves handling of data formats and error response
Merge pull request #12 from betweenbrain/develop

Improves handling of data formats and error response