read.sdm function

read/write sdm* object from/to a file