Make things look pretty, and improve some templating. Also added emailing.