modifications and new recv function
Merge pull request #1 from smurphy8/master

modifications and new recv function