#72: util: add more comments
#72: module-manager: fixes the bug that ranges dont apply due to the changes of `provide`
fixes #72: test: add test cases for #72