modularizing the css, and some minor copyediting