Fix #1

Adds automatic form clearing for checkboxes. The lamp reset checkboxes
will now clear to the default "unchecked" position after executing a
reset operation.

Also included general code formatting cleanup.