fixed background colour for graphs
fixed various CSS bugs
a bit of cleaning
fixed bug in javascript