Moved exceptions to a new file.
Errors improved.