Moving the example codebase to SDK 0.4.x

[Not a change request] This could maybe be done more simply with memset()?