Wrote basic document class.
It is still severely inclomplete.
Testing compatibility with Document.java.