change prints to log, add overwrite option, add template mismatch warning
Merge pull request #1056 from Tendrid/develop

change prints to log, add overwrite option, add template mismatch warnin...