If you go back and post your code properly, I'll have a look at it. Modify your post. Select the code, press the icon with the # on it, and save.
Even better, though, would be to back to the IDE, use Tools + Auto Format, and then copy the code again. Modify your post, select the code, delete it, press the icon with the # on it, paste the properly formatted code, and save.
It isn't your code that you are trying to modify, is it? It's the library, so posting your code is not too useful. Posting the library code, or a link to it, would be more useful.
I tried creating a SoftwareSerial instance and changed the libraries code to accept this but no joy.
No joy is functionally equivalent to "it didn't work". Useless words with no semantic content.
Posting the modified library code, and explaining what issues it has, would be a lot more useful.