Some fleshing out of the Pile class.

Needs some testing.