Add sys.stdout.flush() after all the print statements

This allows seeing the output right after it is created, rather than
just when the buffer fills up.
Add ability to plot surfaces easily
Expand the default iteration limit to 5000