moved computation of domain center to file loading method, fixed getBoundaryPos