Updated module installation check and installation process. Working on FramWork installation and generation. Further refactored code