Large Language Models For Programming Industrial Control Systems And Mitigating Real-World Software Vulnerabilities