adding a while iterator on main + destructor for JAUSComponent
adding while loop to main + destructor to JAUSComponent