Altered error codes, insert-before(), DIFF

Error codes changed to meet EXPath standard proposals; Minor typos. Diff
versions