Many changes

- cleanup comments
- added workers for recieving mail
- The send dialog now closes