Skeleton straightening

improved rotation
fixed a bug when rotating consecutive BNPs