Reworked log. Added generation utilities for bigger test cases.