Added several of the base functions to create/close/destroy piles.  Added a struct to keep track of loaded piles.