Merge pull request #9 from jlkaufman/master

Fixed single document updating.
Fixing method signatures to avoid E_STRICT errors.