Debugged scan_and_align
Adding example scan