Ok so I was not following the instructions carefully enough. Sorry about that. Did not not remember the Transform effect is different from the Transform of the layer.
But now that I have applied the expression per instructions the foot is offset its location. It is staying flat but the code ‘anchorPoint’ is setting the position to be the same as the anchor point. So when the rotation happens with the other expression the anchor is on the edge of the composition. The first problem is solved though.
-Saif