fix a couple of typos
ref #80: add a couple of debug lines