cleanup bootloader code, and add copyright