Generalized code and changed GUI to work

Added Util.java and made an effort to correctly initialize the IP
camera.