Added comments. addPatient renamed and fixed