Added SD logging to the sketch, not very robust yet.  Needs more work.