Changed decoding

decoding now should work for simple fields and simple encapsulation
sentences, group items not tested. Encoding works till converting simple
fields to bits.