added column headers to config file, made a function to sum things