Added possibility to return the used dom document to compensate the lack of saving support
Added reset method