Adding error handling and loggings. Also refactors the names and locations. Reviewed-on: https://nextgenerations-cities.encs.concordia.ca/gitea/a_rezaei/district_heating_network_analysis/pulls/4