Add team functions, divide functions in sections and update references to use backticks