Code Documentation

Starting to document some of the controls in the code.

Apart of #744