added the main app that brings together the checking of requests and mailing.