Working on Analysis.

This is not yet finished, but in a state where I welcome comments.