added more comments, changed first event in average to the first event of the data
css changes