Writing function to parse results. Graph for f vs R and f vs D not implemented yet