delete file before refactoring
refactor commands line arguments
add version option