Added some API docs
Added usage and attribute docs
Fix the example url
Convert back to script version
Merge branch 'master' into gh-pages