Fixes for some stripped newlines breaking threading detection and another stab at finding orphans. #17