Improve error messages
Refactor config error messages
Refactor error classes