Added option to addFiles before committing