added webcam support, other changes