Added sort-by-score. Need to clean out debugging print statments.
cleaned out unnecessary comments and print statements.
Merge branch 'rank_by_score'