Rewrite up to setLayout()
Gem file mode changes
Content file mode changes
Reference Manual completion, first pass.