Add documentation and test cases to digitAt and genSolution.