Merge pull request #40 from smirolo/master

update test reference output after fixes
change data to next etc
merge
updated docs and index.html
last change to Reg() prototype before pushing 2.0 out