get rid of pesky Fortran. Fixed bug in gatherMatrix