[CORE] Update doc on instance type
[CORE] Add some documentation on function.h