Cleaned up GHC and HLint warnings.