Added Command class; removed __metaclass__, fixed typo.