fixed wrong feature in training and added recognition