fixed camera problem for main, made enclosure wrapper master of power for motor and camera