fixed the bug of the program name
use basename to extract the program name
update changes
changed version to v0.2.1