tasklets
RTC timer fixed
Minor changes

Fixed time keeping, memory leak
Move kidle to tasklet

Also, minor errors