Use correct nomenclature: codec.
Remove remnants of the previous implementation.
Fix a few errors.