I'm selling a rental property on schedule E when calculating basis do refinance costs, closing costs increase basis

I'm selling a rental property on schedule E, trying to calculate my basis. I am realizing there were a lot of improvements I made costs incurred that I didn't pickup on schedule E at all. Can I add these improvement costs to my basis in terms of capital gain? Where in turbotax do you enter this adjusted basis? I refinanced several times and had decent costs each time to do are any of these costs eligible to be added to basis? Depreciation taken on schedule E reduces my basis? Closing costs (title fees, commissions, etc) to sell can these be added to basis?