Cost basis and adjusted basis for rental property: purchase price, closing costs, improvements, depreciation, and why basis drives gain and depreciation.