Misc improvements
Merge branch 'master' into c
update generated_c