Did the previous seller do the work? Did you receive a sellers statement pre sale ? Did it ask if work was done that required permits? If so did seller answer yes or no? The town can issue citations but your attorney should be able to get involved and attempt to go after previous owner if it wasn't disclosed appropriately and they knew.