fixing parser crash when '#' is used in terra code.
removing spurious printf
Merge branch 'master' into windows