application of code guide rules

http://mdo.github.io/code-guide/