Added nregs to function and closure forms. Updated documentation.