added wave function. fixed head animations.