Just keep in mind that if you make a mistake in your code and it sends the wrong amount, it would be nearly impossible to fix it. I suspect that some of those cases of enormous transaction fee could be a bug in automated script that mismatched the transaction amount and the fee, or miscalculated the fee.