Fix some doc errors.
Issue 20: Unit tests fail when compiled with optimization.