Large Deviations And Applications