Updated v1 with flash load/store and initial programming of flash memory.

Fixed flash interface PIC code for v1 and v2; tested and works correctly.