add API and readme