Cleaning up the parallel learning code
fixed minor problem