Edits to seminar09_clustering-pca

 * many changes to follow conventions, tidy code, correct typos
 * some to make code more robust