Cleanups

Renaming *Up to *Send and *Dn to *Recv, so it's easy to follow which
reference handles which direction.

Fix if-then-else formatting to be Haskell98.
Merge pull request #3 from errge/master

Cleanups