Added sprite animation and some minor fixes