Corrections to send() function.

Some errors (mainly related to addresses) have been corrected.