Photograph and date everything on move-in, including what's already damaged, and send it to the landlord so it's on record. Boring; saves you the exact argument your friend had.
A friend lost most of a deposit to a "cleaning fee" that appeared from nowhere. It's made me nervous. How do you protect yourself so the deposit actually comes back?