Reorganize component doc

Move the section on documenting components further up the file.