Made fitting more efficient
Added printResults to primitives