Add doc strings to triangle funcs.