add docs for constructor and registry method