Fixed error in genivar code

genivar should now accept error array as an optional input, for SN with
this data already