Remove unused fields to shrink character struct
Clean up header organization
Implement new magic frontend using sexpr