Revised codebase. Rewrote using directional graph as the module parser itself.