added get length to api
Merge branch 'master' into gh-pages