added scheduler to main code
added part to add end of day time block