renamed and wrote explanation for the general contour plotting funciton