Fixed creation of output window. Checking if it already exists before creating it.
Merge pull request #5 from adalon/master

Fixed creation of output window