Made the append undo html clear the node before appending. Related to #43.
Added a reset method to be called before new load. Cleaned code. Fixes #43.