If a declarant or any other person subject to this chapter fails to comply with any of its provisions or any provision of the declaration or bylaws, any person or class of persons adversely affected by the failure to comply has a claim for appropriate relief. Punitive damages may be awarded for a willful failure to comply with this chapter. The court, in an appropriate case, may award reasonable attorney's fees.