The crest, which is also present in Lillienasaurus and Crylophosaurus was probably used to attract mates.
See this link for the evolution of snake venom:
we more or less ment evolution of venom in general, ti was before the dinosaurs actually, i just remambered. it was the gie=ant spiders during the cambrien. or whenever all the coal came from.