added parity, stopbits and databits parameter