Major re-work of documentation.