Adding vaiablenode class, ending of refactoring for fixing errors, and
adding qunit tests