Added some func to sam parser
Fixed old-SM interpretation