Updated dotgen_inferred.php to use data structures in datagen_db.php.

Also minor updates (formatting) to dotgen_hw.php