Cleaned up the code a bit. Removed some modules that aren't relevant any longer.
Fixed positioning of some figures and some lhs2tex stuff.