Fix bug in alignment parsing

The mapper was being filled with values with trailing '\n',
which was messing up with the alignment.
Wrap record handling with Exception

If one record cannot be read and wreaks havoc in the program,
the best thing is to skip it.

This is handled through an Exception.