added checkgens.py for checking data consistency