Move "@include globals.R" directives to top; slight doc fixes