test.sh was using the wrong paths for classpath and library path
Native build now looks in more places for jni.h. Plus, RGBA has more parse options.
Tidied up code while writing the javadoc comments.
Renamed collision methods.