animation parameters are now vars; set height
cleanup and comments