Fix last update + add comments on main.js