Fixes

Fix not finished code in msggen
add struct member gen
fix main function to size output...