add phpdoc
Merge pull request #178 from prolic/phpdoc

add phpdoc
Fixed signals to respond immediately instead of waiting for timeout.

Added check for stream_set_read_buffer

Fixing error handling, allow basic.cancel to be called at any time.

Fixing mb_substr returning no data, fixing order of exceptions.

Fixed buffered writes on large payloads.

Fixing buffered reads.