edits and additions to SNCompression stuff --David Carateli