improved plotting
printout transfer matrix sizes
some comments
fixed template names