added qunit test suite
added data-weight ordering
data-weight fixes