debug tunnel in/out in retention

-FIX : fix a bug in reading substrate result from Pytaurus
-NEW : write the tunneling direction when writing substrate result
Merge branch 'master' of https://github.com/lunzhy/SimCTM