Add minimal editing support.
Rename config.h -> globals.h.
Fix bug introduced earlier.