Used stylish-haskell to fix whitespace
Changed implementation to use file metadata