updated skeleton of scanning code and pointcloud viewer