Add feature detection code snippet; closes #27