cleanup a lot of old unused stuff, add commons fastmath and log/exp
methods