fixing a bug when naming the maya output file

also minor changes when accessing eigen structures