Added command factory and command interfaces and stub classes