update_config function now working, still remaining bug: prints None
atm.