Restyle the gear menu to match the mockups
Add comments and refactor some CSS rules