Fixed an off-by-one error in the docs.
Also added some whitespace and replaced some tabs.