added static variables, fixed screen size issue, some commenting