added writing point cloud to .ply file for viewing in MeshLab