added comments to Notepad.java