added -Wextra compiler option and fixed warnings
Merge pull request #3 from stormc/master

added -Wextra compiler option and fixed warnings