Updated the matrix factor to support examination of intermediate results
Changed rotten learn to work with new matrix_factor.py
minor modifications