Fiddled the mode detection as discussed

Also made the doc buffer do line wrapping, as it was annoying me. And updated the readme and screen shots.