added documentation and error handling for http-get