refactored script to easier accommodate wish to bypass CSS generation. Fixes #5