Refactor config file loading into its own function
Add explanation of unusual import declarations