added illness and patient link and delink, added patient and illness link and delink, change output, function final