Updated to generate .world file

Now generates a .world file instead of just printing to console.
.world file can be accessed through getWorld() and it is saved in
the java project directory.