Added Document base tag, and updated a lot of javadocs