Merge pull request #2 from jokerdino/rewrite

Add reset, and debug logging to all elements
Minor fixes, got a switch working
Pulling in dino's logging and debug additions

* jpm/rewrite:
  Adding debugger statements in elements
Fix toolbuttons debug logging
Debugging elements