Added settings dialog, limited undo buffer option