added ability to output range data to ply