Fix service template bugs.
Write service.yml related documentation.