The code sample in section "`beginning-of-buffer' with an argument" has some weird indentation and has an extra closing parenthesis at the end. The attached patch seeks to improve this and reformat the math operations hoping to make them easier to understand.