fix dependencies
add comment
use process_argv in generate trend