Add docstring to create_instance()