added notes and a test of user agent string