removed unused imports
removed last newline, when importing an opened document
added undo and redo icons