Added email attachments

- Added attachment code
- Added documentation changes
- Added tests