Added command interface

Began to implement command module.