Centralized logging with loglevels, DRYing functions, refactoring for size, using case instead of ifs. Adding individual door locking, update the enable/disable functionality