Fixed disconnect handling, timeouts. Improved readme.