removed som dead code
added documentation
IModuleReferencResolver to resolve module references
consider minimal stateds based on target environments