Updated the Cascade used, added histogram, and more parameters into detect function