Geometry function errors

vec-angle was producing incorrect sine cosine pairs.
perp-base was projecting to wrong point.
Added tests for these issues.
Moved auxiliary to action