Added TOTP implementation and tests.
Added documentation for TOTP.
Small fixes