moved variables to local, feature detection, files for sift class