Generate distance matrix plot.
Tidy up comments.