The Kolmogorov-Smirnov (K-S) test is widely used as a goodness-of-fit test. This thesis consists of two parts to describe ways to improve the classical K-S test in both 1-dimensional and 2-dimensional data. The first part is about how to improve the accuracy of the classical K-S goodness-of-fit test in 1-dimensional data. We replace the p-values estimated by the asymptotic distribution with nea...