Fixes based on pull request feedback.
Also, added some additional information in the user-agent.