Move design instructions into documentation
Minor code reformatting

Adding more spacing, relocating braces, rewrapping comments, and other
glamorous things like that.