Fix cstruct overflow, correct sequencing in cenum, add docs