Doc: Fill out API reference.

Also, move instruction set section into its own file to try to fix the table of
contents.