Home improvements while getting the property ready to rent and home not rented for 45 days after I moved out

I made improvements to my primary residence while living in it to get it rental ready. Moved out of the home on Aug 1st 2017 into a new primary residence, but the rental was not occupied by tenants for 45 days and they moved in Sept 15th 2017.

1. Can I deduct improvement expenses ( hardwood, painting etc) that was done before listing the property for rental? It was all done from July 1 to July 12 and the house was listed for rent on July 20th. From what I read it cannot be an expense ad has to be depreciated, but not sure if can be depreciated since it was not listed for rent

2. When do I stop deducting the mortgage as an itemized deduction? Would it be Aug 1st ( when listed for rent) or Sept 15th ( when the tenants moved in?).