Tidied up.
Documentation.  More coming.