working on commit and undo (file name errors :<)