changed package name factory to docfactory