added clear purge reset to preset_hub, clearall and clear to preset_node, and cleaned up a number of bugs.