Cleaned up a bunch.

Moved thread and process work to separate files.  Put calculation
of alpha into my_utils .  Generally cleaned.