Remove some dead code, clean up some docs.