Removed unnecessary sources & Updated some code for attaching or detaching device drivers.