Add annotations to Config functions
Add comment and annotations to registerFunction