Inference for Diffusion Processes: With Applications