format by Astyle.
fixed the struct packed issues.