Output flush fix and documentation update.