Updated ursa module
Cleaned up keyring code and tests