added commands
added tests.