Changed output file dir to startfreq_endfreq (to avoid ambiguity while testing and the like)