Fixed a bug with send/recv
Updated version with some bugfixes