Client-supplied changes.

Completes the implementation of double-sided state, and revises the
interpretation of the transparency flag in the text file.