Correct first instance of write-commands to write-config. Change shiftwidth to 8 to match tabstop and softtabstop.