incremental work on switch element and updates to the example for debugging.
working switch element
working switch - on_val and off_val can be set as desired

Todo:
	- resolve difference between attribute_context and on_val/off_val
typo fixes
minor cleanup and typo fixes