refactored a printListofPatientAfterDoctorsAssigned method to return string
Added file butter to allow user to see full output