put more error catches to work AddClass.java and Disp.java