fix typos and inefficient type conversion warnings
Merge pull request #2 from Bananeweizen/master

fix typos and inefficient type conversion warnings