Lots of changes. Verify your code hasn't broken!
Added plot_2, plot_3. Results need to be verified.
Split plot_4 into plot_4_1 and plot_4_2.
Separated k-means calculation from computeDesignMatrix and removed computePhiFromDesign.