readme update with api example