XYZ point clouds only. Comments added to funtions.