Added ability to change patients. Improved file loading