Added Solenoid
implemented reopening while closing
removed solenoid implementation