Code tidied and streamlined

Tidied up the code, streamlined some of the functions. Added a
writeOut() function for writing a matrix to txt file. Added an option
to display plots with a 5:8 ratio for fitting eight plots on a page.
Added rotation and scale transformation functions

Added functions to handle rotation and scaling transformations. Added
shortcuts to the 8 main distant metrics. Scaling is not working
correctly yet.