Minor bug fix and documentation.