Added doctests to register module.