Test: guard against empty line
Modify test cases; Stable/total ordering of all sort functions such that python and js sortings are the same (for same key but different secondary member of any structure); Also computeOffsets is actually used.
JSHint errors
Amended documentation