extension bug fix (?)

sometimes the normal of existing_head was not computed correctly.
wrote new fn to compute CoM and normal.
seems to have fixed the bug.