sha1 fixes and API improvements.
Generate registry file.