Updated the configuration parser to make it more robust and remove the necessity of hard coding in section names