a lot of codec progress
fixed Document merge and added new support files