Updated the state methods to use the newer tcl/tk commands.
Added removeState and resetState methods.