Capacity Functions commenting

Started adding comments to the main script functions that handle the
capacity changes, and add some debug output that will be removed later.