Add comments to _main.js, remove finalize