fix typos and logical errors
Merge pull request #90 from wilddeer/patch-1

fix typos and some other stuff