Code cleanup
At startup last activity check bug fix
Day of the week bug fix