Added save and save as functionality.
Move QApplication setup into subclass.