Added some better documentation, and got qunit work with a couple of simple tests to make sure.