Bug fixes and documentation.