timemodel varaiable day fix

and some other fixes in the model