Fixed bugs, added comments, and made more readable process_clusters script.