Deductions & credits

in TT, under the Cost or other basis, do I include all capital improvements at their original value, or do I reduce original value of improvement to allow for the depreciation taken while I rented it?  also, what specific items can i include in cost basis, e.g. closing cost when i purchased home; closing cost of selling home; points paid when i refinanced loan while renting it, etc?