added documentation for matlab read and write functions