Improved error logging
Add Portuguese translation