added runanalysis.R