new functions: expmat, eofRecon. eof updated