Added initial_mode property to camera config.
Made the camera thread a daemon, so it exits when the program closes.
Minor fixes.