Fixed a KeyError caused by empty user agent string.
Bumped version number to 0.1.1.
Documented changes.