Adding some notes to function code