Added additional has feature detection.
Fix line endings.