Class for Serial port manipulation