Added RTC function

Log file now is created in dated folder. Still needs finalization.