First commit of SMDecoder

First commit of SMDecoder in this branche