Add basic option parsing and bugfixes
Two comments caused a crash because of empty destination directories