Changes as discussed in PR 1 review

- Stylistic enhancements
- Don't transform non-minErr errors
- Better variable names
- Provide file and line info when logging warnings