Fixed minor bugs in centerline refinement