debug stuff + hex input for java

Signed-off-by: Mattias Andrée <maandree@operamail.com>