strip source and target input. fix updating phrase to internal alignments. fix updating word pair frequencies.
no longer pass None as default max_lines, instead pass inf