Added notes to Psuedocode