DOC: Added function documentation for record_vars.
REF: Deleted unused attribute. Variable register attribute is now private.