Added possibility for callback function to cancel updating source file.
Merge pull request #27 from bostrom/master

Added possibility for callback function to cancel updating source file.