Switched from: Matt sparks to Krodal implementation 

- new implementation is taken from
http://playground.arduino.cc/Main/DS1302