Fix a whole bunch of errors in the resource stuff.

Change the global resources path so we can create it succesfully.

Much javadoc and format changing.