rstrip line.
Move some function to helper.
add a script to generate lda data and process lda output.