My question involves landlord-tenant law in the State of: Massachusetts

My father is his friend's (my 'uncle') rep payee for him because he has disabilities and is on section 8 housing. He was at this one apartment for 7 years and the landlord started to create issues. The landlord is known to be an issue in the city, as for he's called the police 40 - 50 times on his various tenants during the past YEAR. He entered my uncle's apartment without with his permission, and attempted to file a complaint against my uncle with the housing authority, where his complaint was dismissed. So due to that my father decided to move my uncle out of the apartment. He gave the landlord a month's notice (he wasn't happy at all!) and we moved him out and cleaned out his apartment. The landlord was unavailable to do any kind of walkthrough at the end of things, but he asked my father for money to have the carpet professionally cleaned. My father told him that he wouldn't pay for the professional cleaning of the apartment's carpet when it was left in clean and well vacuumed condition. He took pictures of the apartment and we left it in a clean condition. Well just today we got a letter from the landlord with the security deposit. The landlord charged $200 for a professional carpet cleaning against the security deposit. He also charged us for him to clean the bathroom ($45) and clean the baseboards ($45). Is he allowed to do that? Is that something we could fight for improper use of the security deposit? What would the requirements be for us to prove that he improperly used the security deposit?