QAABR align functions added; some improvements