Migrate from using macros to variables for ensemble number, time step, temperature etc. Thetadot,Phidot, StocThetaDot, StocPhiDot, Aj functions optimized.