Added more methods

Implemented the deleteFromDocument, toString and containsNode methods.