Split_main

Splits function main into parts. Created new functions: run_clustering, classify_subjects, and  save_results.