More java docs and some cleanup. Created ByteArrayUtils, moved some methods to IOUtil