Merge pull request #27 from rmtmckenzie/Morgan

Fix sendreceive ports
Fix formatting and imports on all files with netbeans. Also bug 261.