updated to correctness

This code was debugged of the previous plot error and mindeg is added. Assumed to produce the correct log-log plot until now.