Refacturing of the Main method

I extract a lot of things form the Main method in new methods. And I
deleted all comments.