Key generation and emailing, test taking complete and some fixes