added file writer and made AnimatedPlotter widget