Fix local variable issue.
More bug fixes.
Setup qunit testing. More bug fixes. New build.
Merge branch 'release/v0.3.1'