Fixed compilation with GHC 7.6.3.
Added -Wall and -Werror.
Cosmetic changes.
Hlint suggestions.
Merge pull request #1 from asr/master

Various (fixed compilation with GHC 7.6.3, added Hlint suggestions, etc.)