added Document methods and properties according to the spec

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>