updated API doc and Readme