Minor bootloader tweaks; make some functions static where possible to reduce the compiled binary size, add additional comments to the makefiles.