edited docs and fixed addAndSort typo