Update main.js

Got rid of padding, added more comments