Understanding of modules structure finally came to me.
Everything re-factored.