add undo all function using NSCopying
replace undo all function with undo once using NSUndoManager.
Merge pull request #2 from bennettslin/master

add undo all function using NSCopying