Separate send / recv examples
Update recv example
Cleanup some memory leaks