Made code more modular- you can initXXX() devices you have and leave off ones you don't