load-datasets fixes+stats, validation fixes for duplicate ids, new Makefile targets