Phase I: minor fixes to print statements using join