added mdcrd writer, first test