Add API and improve readme