Simulation and Inference for Stochastic Differential Equations