Add comments to main.js, only show decimal places for important if number isn't an integer