fixed links, added java code