Fix for service inheritance. The service was always extending NSObject. ...

...It will now extend the superclass if it exists