Simple code cleanup

Various code cleanup, including bad markup, spelling and grammar, formatting, and other simple changes.