Fix makefile.

`make code` was unable to build due to multiple issues.

- create / remove directories `code` and `output` for appropriate targets
- removed missing files from `$(SOURCES)`
- make whitespacing consistent

A remaining issue is the lack of `Base` module that most of the Haskell code depends on.