added configurable notify when sync done

I believe the option names and default strings could be nicer, but I would need a little help on them. Additionally I don't know if more return codes should be identified differently and/or with separate options.