Improvements for browser and os detection

Updated and improved detection of some browsers and operating systems