Added a DI module and more base npm packages.
Added some comments and refined the config functions.