Added init() method for services (fixed #8)