first fully working version

still to be tested and improved but possible to flash different
firmwares to a sensor with this bootloader