Modified BootMain syntax, added porting example.