Rewrite configuration documentation to include information about globals (fixes #555)