Updated code to read from excel instead of text
This is a test code: may need updates