minor modifications to css generation and added moving average smoothing for visualization