def report_writer(md):
    """
    Reads meta data into function and makes txt message report.
    ----------
    md : dict
        Contains meta data from experiment file
    Returns
    -------
    message : string
        The text output for the report
    """
    s_name = md["sample_meta_data"]["sample_name"]
    s_date = md["sample_meta_data"]["sample_date"]
    s_surface = md["sample_meta_data"]["sample_surface_area"]
    imp_mode = md["experiment_meta_data"]["impedance_mode"]
    meas_volt = md["experiment_meta_data"]["measurement_voltage"]
    vs = md["experiment_meta_data"]["vs"]
    pert_v = md["experiment_meta_data"]["pertubation_voltage"]
    sf = md["experiment_meta_data"]["starting_frequency"]
    ef = md["experiment_meta_data"]["ending_frequency"]
    ppi = md["experiment_meta_data"]["points_per_interval"]
    ig = md["experiment_meta_data"]["interval_group"]
    spacing = md["experiment_meta_data"]["spacing"]
    
    intro_line = "Report for "+str(s_name)+" experiment conducted on "+str(s_date)+".\n\n"
    imp_line = "A "+str(imp_mode)+" measurement was made with a "+str(pert_v)+"mV pertubation voltage at "+str(meas_volt)+"V vs. "+str(vs)+".\n\n"
    range_line = "Experiment conducted from "+str(sf)+"Hz to "+str(ef)+"Hz with "+str(ppi)+ " points "+str(ig)+" using "+str(spacing)+" spacing.\n\n"
    surface_line = "Sample has a surface area of "+str(s_surface)+"cm^2."
    
    message = intro_line+imp_line+range_line+surface_line
    return message