Updated a few docs
Fix if overwritten folder is git repo
Added missing unittest