Updated license
Updated handling of HTTP responses. Fixes #6, fixes #7