add command stack
add command stack tests
fix changes by #6
Merge pull request #3 from DavidBadura/CommandStack

add command stack