create analytics functions and refactor algorithm for connecting subClusters with their root productClusters
finished analytics functions. tested with mock front end and seems fully functional.
add keyword to package.json