Some more documentation for main.js