Updated notes in README. Tidied up code a bit, improvements to sorting algorithm.