Improved docs and tests and graphs.