resshapedata.R should now output in a nicer format
resshape_data.R is now more general