tiny changes to animation + flushing the file output now