str() method added to component
str() method of component also prints state (OPEN/CLOSED)