Added main wrapper
Added comments to main.js