removed unused factories
added docstrings