updated java example
fixed packaging
updated gitginore