Cleaned up simplegen and added flags2yaml.