It sounds there were faulty things in the flat, then after you leave , he turn back to you asking for compensation ,so if you rent this flat you have to take photos for every things before you enter and after going out.