Adding call to delete stack. Slight re-factoring of Stack class. [skip ci]