fix indentations

first crack at an explanation of this algorithm