adding in matrix functions

Adding several functions around matrix operations for veris data and
the veris2csv function to export to a nice CSV.