Explain recursion

Add Rubydoc comments to explain the recursive calls made in this class.