Merge pull request #146 from mannol1/master

Changed code a bit and added new features
Cast time to "time_t"
Cast time to "time_t"
Merge pull request #147 from Ansa89/cast-localtime

Cast localtime
Reverse call_idx and enable running call when devices fail to load