Add comments for the permutations method