How to attach software serial to a library

Retroplayer:
Of course, I would need to go further and provide a way to use the other hardware serial ports on a Mega.

This is taken care of by providing a constructor which accepts a HardwareSerial. You can pass in Serial, or Serial2 or any other hardware serial port that your Arduino has.