add setEncoding() and setVersion() to Docuemnt
Merge pull request #4 from quaff/master

add setEncoding() and setVersion() to Document