removes unused factories. fixes spec documentation