Added generator helper and worked out main flow for generating files