Add basic option parsing and bugfixes
Two comments caused a crash because of empty destination directories
Merge pull request #1 from mgalardini/master

Add basic option parsing and bugfixes