adding sas sample code, small edits to matlab code