Add comments of Document.java
Fix warning of generic without specified type
Suppress warning serial
fix conflict for merging master