processing data generating html and csv files