more comments added to graphpanel.java