Modulize script

Implement url title feature.
Add command line arguments.