Function parseConfig

Clean input config data to include any missing defaults.