little Modifications

added some modifications to rtc and main