Fixed the most warnings for unused vars/includes and unchecked vars.
Merge pull request #2 from wmchris/master

Fixed the most warnings for unused vars/includes and unchecked vars.