Correct broken functions in core.clj.

- Restore config in interface.
- Tidy data data manipulation in interface.
- Add function that allows data to be written to external file.