Repo now encodes and decodes using the RFC2938

The sample project was modified, and the source code was pruned of
unnecessary methods and functions.