Add helper class to check OS Type
Refactor downloadText method