1) Critical bug fix for stack KOP MEM1 MEM2.
2) Memory fix for stack creation
3) Stack command new constructor added for KOP MEM1 MEM2
4) Variables added (not included in evaluation yet).
5) Minor code clean up.