fixes gradle dependency and sample code snippet