Improved header format, now includes region. Started using defines to debug flash erase.