Added test for ChangeVar effect. Also javadocs for variable-related classes