[Java]: Added javadoc and tidy up of OTF decoder.