Changed Dependency Check Architecture, added core f

Changed dependency checking architecture for module to module
Added core flow for Switch event !