Finding and Fixing Issues with Legacy Code using AI