Lots of cleanup

Initially, I wanted to fix the palette in `tl_module`. Then I noticed a lot of other stuff to clean up ;-)