Fixed xs and ys inversion/transpose problem with surface plot.
Fixed major bug with surface plot extents.