Fix #19
Simplify code for #19
Update API doc and minify JS for #19
Update readme for 1.0
Bump version to 1.0