Changed formatting of Java printouts, now can find dependency heads of the chunks