Remove duplicate empty lines.
Document Register_Function and Error.

Also fix an issue with Register_Function when the name does not contain
any dot.