added working RTC code, reading needs some work