Merge pull request #2 from mechmind/custom-user-agent

Added ability to use custom user-agent
fixed typo in user-agent check