Clean up. [1825]

Removed some commented-out code, reorganized the imports, spruced up
the javadocs a little, and changed the “previewBox” static field to be
an instance field.