put sort class and functions together. testing needed. updated Readme.