Makes the Haskell code compile-able 

I wasn't able to compile the Haskell modules or load them into GHCI because the filenames were lowercase, there were a few little syntax errors, and a few modules lacked module declarations, so I made changes to fix that.