Fixed resource retrieval when using the library in a jar, fixed the PdfArray unit test, added Javadoc.