First commit on untested encoder library