made codec exported
added doc