Add clear module cache on reload debug feature
[WIP] Fix many bugs.