updated initialization and sleep tracker and camera