Added some docstrings and made some minor changes

Partially completed grids can now be passed to the generate_sudoku() function for solving, although the algorithm will need to be improved to avoid stack overflows with more difficult grids.