added more documentation, fixed tests for find_phrase_matches, wrote score_text