reorganized and completed cluster function, split scripts into env, cluster and post cluster figures.