updated API section of readme