some more edits to mat to ascii script