Bidirectional control now works, and direction reset should work. Added ignoring backup files marked by tilde.