figure generation should not be the default behavior (also I carried a
couple of functions around to structure the file).