changed generated code to c89 standard
separated source to definitions and declarations
renamed explode functions to deserialize