small updates to Ctc.java and the gui