cleaned bootloader code a bit more. Fixed a bug with a function always returning true. Untested.
added timeout feature for the bootloader segment. Fixed the bug when a robot fails to properly program a segment