Not done, but implemented the stack manipulations in N-W and S-W
cleaned up compilation