decoder tested, works.

This commit removes old functions that are no longer required.