Code to videotape it in action; Cleaned up some formatting