Added JAI jar and a few java file edits