Added register_instances and register_class decorators

Missing docs, missing tests