Fixed a mistake where I removed some CSS properties.
Optimised classManager to include groups instead of going through everything.