Added mtrn.R and mtrn.sh