Moved analysis from process_work to post and cleaned.

This is part of a greater effort to separate software and science.