fixed bugs in clustering and data import. Added convinience script which starts importing and clustering as thread