Cleanup old chart code and add more functions to SurfChart

The SurfChart library now supports a legend with different options.