Fixed bug #12, etc

Small bug fixed with zooming
Added close confirmation when animation has unsaved changes
A little code cleanup