initial commit of uis/training/h.java and also bug fixes