Add 'input files validation' + 'error messaging'

The script will now print into screen a description of the problem if it
occurred during the parsing of either the mapping file or the coords
file.

This also fixes an issue with the script failing when the output dir was
not passed as an argument.