Finish commenting expanded.py.
Finish commenting expanded.py.

I also added a function to convert the output of the coexistence
finding functions into a form suitable for average_histogram().

adamrall/coex