sync_send and bugfixes

Add new feature sync_send and bugfixes (as #18).