Provided default constructor for CodecPailStructure, several bugfixes