Formatting and logic errors

This has minor formatting modifications made to allow the portsnap
abilities to function.