added commands in parser

undo and redo