added qunit tests, and some extra docs in the readme