Update Sketch logic.

Sketch can now be used to send data to SD card
or to send data to Serial with the flip of a boolean flag.