adds kmeans clustering
adds DBSCAN
adds recording code