Fix 313 generate scripts

Updated the contributing file to reflect script changes.
Updated each generate script to pass an IIFE to module.exports.
Updated generate/index.js to account for the above.