Fix errors
Preliminary draft TOTP