Add docs for factory and the instance methods