updated notes for algorithm

added headers for 2 methods and some more notes for the algorithm