Fixed some code flaws; added isAnimated() method