Added constructor to camera object
changed thread sleep time to 1000 milliseconds