Bug fixes and better documentation.