Inspection of attributes in inspector and shell improved. Refactored duplicate code.
removed grouphandler import.