remove obsolete constructor
refactorings - creatre Main class

* wrap stream handling to Main class