Small changes to writeSS.m