Polishing the tool.
Better separated failures from errors, added readme, makefile, some correctness.