Refactoring to mapmodule. Deleted the unnecessary mainwindow file.