Added write out permutation B maps

The code writes out the standardized B map results using the
permutation.
The write out code is starting to get sloppy and needs to the organized
and streamlined.