Added Logging.
Using http://playground.arduino.cc/Code/Logging