Remove trailing whitespace.
Add id and class attributes to menu links.