Adds documentation to the factory

fixes #11