add preliminary version of a service
fix coding style, docs, unused imports, trailing space