Fixed closest point script. Wrote the plane equations to file 'planeEq.csv' which can be read back into Matlab using the last lines in doall.m