adding some print statements to CTC
do merge

Merge branch 'master' of https://github.com/tnason/CoE1186
fix some bugs