works now with sending files at start during registration

also it unregisters itself on exit.  fixed problem with sending more
than 3 files.   Also fixed problem where if you get a file you don't
try to get it from yourself.