Sounds like you've got it, on the first part.

And WritePort just writes to the PINs.
It doesn't write to Flash memory.

Cheers,