update to spectools

changed .sigma to .var in the write function