Fix a small bug in fileopen
Small fix in inertia_align
Add centering in inertia_align