Fix issues found while compiling using ghc -Wall
Merge pull request #2 from nataren/tweaks

Fix warnings found while compiling using ghc -Wall