added fitness history logging, writing history to csv, simple R code to plot history