exporting rmvnormal + minor clean-up