[#172]Added patient id and gender to duplicate patient results. Fixed other small issues.