More reliable bit flipping in autoClose door
Made blacklist configurable, and added a whitelist