improved I/O parameters for reading master pty

use bigger reads and bigger buffer for more efficiency.
(not sure why it wasnt able to read more than 512 bytes
per read before).