Updated some comments and documentation
Renamed wrapCodec to wrapCodecWithContentType to make it more obvious what the function does