Insert() methods check for inserted XML to be in the same doc, and remove XML from old location if already inserted.
Grammar error: there -> their.
formatting tweaks
up the version
Merge pull request #139 from dennisjenkins75/master

Grammar error: there -> their.
you have to check len before accsessing "p".
Merge pull request #140 from ledyba/check_data_len

you have to check len before accsessing "p".