- remove obsolete imports - add missing imports - fix typos - fix syntax errors - thanks to landscape.io for report
- modified to support both encoding and decoding - fixes - added test for all encodings
- more flexible and developer friendly. Still not active code