Changed CSM to convert from string to CP object. Also can store CP objects
as strings when writing.

Signed-off-by: Sophie <sophie@sophie-Inspiron-1564.(none)>