Fixed config saving. Closes #12