Merge branch 'release/0.6.5' into develop
remove temporary debug print and add configurable debug print.
fix bug.
update version.
Merge branch 'release/0.6.6'