updated doc
updated API
added example index.html