moved inline CSS styling in the HTML output to an external stylesheet by adding classes to divs. Then changed all the CSS to look less rubbish.