More exceptions added

Exceptions for raw and map file errors. Formats are not checked yet.