Updated bootloader and pre-boot code