Minor restructuring in flash.c, add prototypes to loader.h, clean up loader.h/parse_srec.c interaction.