Documentation and change in return type of method generateInstances()