Java code reformatted; trancript data port