WIP: Summary2

Cleaned up version of what I had posted but deleted a few days ago. It now works as advertised, but some of it could certainly benefit from a more experienced python hand. 

Let me know if any of this is usable. 

Vincent