Add more documnetation, tidying

More of the usual, added during investigations.