Reduced bootloader size

changed some uint16 to unit8 based on feedback from @Damme