better error message
added debugging
fixed testing_patients.txt empty case