Code made slightly more readable.

Seriously, I started to write this parser when I was still in school and
didn't have much experiences. I didn't used linters and unittests was
just something I know that it exists, but never used it.

This shit will need to be completely rewritten in order be usable.