Added multi-frame sprite generation; cleaning.