Updated README and added Java example