small reformatting of the css file.
several refactotings and tweaks.