Added decode method
Removed duplicate code encode/send and decode/recv, Added recv_nowait method
Merge pull request #20 from sappo/master

encode/decode and recv_nowait