Corrected example given in README and added api implementation file