UI docummented

Docummented UI code.