Lots of doc and minor improvements to gui.