added comments to the DocumentPanel.java