updated example
better form handling
updated doc