Added documentation for registry functions.