this code has all the functions needed for processing and displaying the point cloud.