Implemented quit command builder. Implemented, documented and tested command factory. Closes #266.