refactored subscripting and fixed #52
Merge remote-tracking branch 'origin/master' into gh-pages
built demo