Fixed plotting bug. Added default values for threshold step size and number of processes.