some changes to models, roles, and setup mail
added app yaml