Make draw

With this pull request it is possible to make a draw "code-wise" but not using the gui. A test draw is added in MainWindow. More info in the commit messages.