Fixed equation generation in Sudoku example

Also added the "quit-after" optional parameter which places
an upper limit on how long the example is allowed to run.
Added .swp and .*.swp to Git ignore