fixed some issues of the last commit
Merge branch 'refact' of github.com:elador/FeatureDetection into refact