Reformatted the source code.
Updated the main.java to work with later version of JRift