Refactored out the config parsing, engine creation, and model from the dot generator