Added some error handling for the API. Cleaned up HTML a little