Generic and cleaner SerialComm class