added arctan. fixed bugs in lexical environment shens that was causing orientation to fail