Implemented encoding algorithm.
Added support for numeric characters
Added tests
Added docs