Huge commit.

I've refactored some code, added faults and tests definitions and
parsers.