Added contourPlot() function, based on working stand alone examples.
Removed `library` and `require` calls from inside the function definitions.
Added underlayer and overlayer to contourPlot().
Other bugfixes.