class Encode: sub classes for UIN, SIN, ULG, SLG added; decode functions reimplemented.