Substantial CSS coding, minor bugfixing