Version 0.4.1

Replaced animation functions with utility functions that should be much
more flexible.