Sorted file names and changes in execute command with Popen.
Refactoring code.
Refactoring code, remove optparse module.