Update main.cs

OS detection added
Added empty constructor that gets user agent