Uniform Distribution and Quasi-Monte Carlo Methods:Discrepancy, Integration and Applications