add plug switch state
add plug connect/disconnect
fix file increment saving
refactoring plug vector
add vector addition