added notes on the function section