Updated sketch to work with the current Time.h library and Arduino 1.0 IDE compatibility