To start, use type and module to organize variables and subroutines, make it easier to instantiate the MD context.