Minor changes to processing script; better connection error handling in XML parsing script