CAROLINE-4: Writing values to config (except D1 and D2) is successful.

Error with parsing this config in caroline.cc. Crutches are made to make the
program work without submitting any images to it.

CAROLNIE-4: Refactor helpers.

CAROLINE-4: Refactor helpers. Move save/load code. add test.