Corrected few mistakes

* rtc will not lose tick if can't find timeslot for 32bit increment
* get_rtc mistakes was repaired
* other minor changes