add readline, handshake and timeout control
Merge pull request #1 from joshuanapoli/master

add readline, handshake and timeout control