removed closures
changed the way css files are selected; other refactorings