added some code to output the results and started on reading from the config