Added error message to name errors
Fixed error in sequece field reference generation