If the buyer establishes a right to damages, a district court hearing the matter may in its discretion also award to the buyer an amount sufficient to pay all or any part of the costs incurred in maintaining the action, including reasonable attorney fees, and an amount for punitive damages not exceeding five per centum of the purchase price of the land.