Uncommented code working, indexing and displaying from config file. Need to troubleshoot function passing and sort out any issues