Add comments to functions; add DocumentListener to JTextFields