really computes a coarse alignment and added some console outputs