Minor fixes, and added CSS generation.