Updated config loading and added reload function.