Development of a program for converting diesel engines to natural gas