Added third argument to specify publishing frequency

Hello,

I myself needed this change and I have read several posts online for people requesting this change. I have added room for providing the third argument to the executable that specifies the publishing frequency, which was hardcoded to 1 sec before. As can be seen from the code, the third argument can even be not provided and the code will use a default publishing frequency of 500 Hz