Added User-Agent string and catch for HTTPError

closes #2, closes #3