java api usage added to readme