Fixed up vs project and made door state configurable