avoiding lost last file when command wasn't correctly executed. Closed #1
changed edition logic to an specific file
removed unnecessary options