can now send email notifications. also added a small integration test suite.