Adding json/xml examples
turned names controller into common names controller
fixed trailing spaces and old-style syntax
too much copy pasting