Added command class and tests
Added a few more tests