Fixed bugs in tslib from previous changes. Added movie-making script. Fixed other bugs.