move frequency calculation up in order.  open raw data file for reading.
should now print raw data to the raw output file.  this should help in showing e.g. nonlinearity of results.
whoops, missed a newline.  hilarity ensues.