added some comments and tidied stylesheets