Add many notes on functions