Fix wire snapping on rotation and drag and drop
Fix whitespace errors