Sold my house recently - 2 questions

Hi I sold my house recently for $540,000. How do i file the tax and also save from my tax breaks? I had expenses on the house - home improvement i had a fence put up and so on.

 

I also have a question on cash donation. I donated $5k to a temple charity. What i need to do. Thank you