Due to powerful geometry treatment capability, Method Of Characteristics (MOC) currently becomes one of best method to solve neutron transport equation. In MOC method, boundary condition treatment, complex geometry representation, and advanced acceleration method are the key techniques to develop a powerful MOC code to solve complex problem. In this paper, we developed a powerful MOC module, which can treat different boundary conditions with two methods. For problems with special border shapes and boundary condition, such as rectangle, 1/8 of square, hexagon, 1/6 of hexagon problems with reflection, rotation, and translation boundary condition, the MOC module adopts periodic tracking method. For problems with general border shapes, the MOC module use ray prolongation method. Meanwhile, graphic user interface based on CAD software is developed to generate the geometry description file. The geometry and mesh can be described and modified correctly and fast. In order to accelerate the MOC transport calculation, the Generalized Coarse Mesh Finite Differential (GCMFD) is used, which can use irregular coarse mesh diffusion method to accelerate the transport equation. The MOC module was incorporated into advanced neutronics lattice code KYLIN-2, which developed by Nuclear Power Institute of China (NPIC) and used to simulate the assembly of current PWR reactor and advanced reactors. The numerical results show that the KYLIN-2 code can be used to calculate 2D neutron transport problems accurately and fast. In future, the KYLIN-2 code will be released and gradually become the main neutron transport lattice code in NPIC.