import document module on-demand

This will save several megabytes of RAM when startup.