Making sure examples work and cleaning up random files