Added emailing, fixed some archive stuff