add document for implementing service and command.