Fixed issues with http response data. Fixes #4 Fixes #3 Fixes #2