Fixed everything and made additions EXCEPT for multiple patch types
Fixed error in writing log file