Added environment variable substitution for config files. Reorganised examples.