Add control to start animation only after all images loaded
Add more documentation throughout code