More comments.

Added more comments to Main.js