minor changes, starting adding control for the sorting thread.
Resolves issue #5
Merge pull request #7 from FaithForHumans/keyBoardFix

Key board fix