Fix bugs in RTC sketch. Add some minor improvements too. Tested on DeadOn RTC breakout board and RocketScream