Change the way of parsing the file

It was a complete mess, with this change the things are more clear.

Now instead using metadata for all, I am using the struct attributes
more often.

Fixes #3 too adding a Fatal log in case that some slug is duplicated.