small changes; added links, improved API