Modularization of the code

created:
    Main - only the initialisation of the main Window
    Menu - the menu-code
    TextArea - the code related to the textarea