major redesign with settings in main.tex (idea stolen from Thomas Schlager)