some corrections done on code, added the new class for Primed Instance window