reorganised the service module

Signed-off-by: PythonShell <PythonShell@yeah.net>