Added the return value and the notes for the code.