Added functions reading data matrices