Added notes and TODO list at the beginning of the code.