changed for testing file()
comments, most likely abandoning
implemented filename()
fixed print_footer revert to old, sometimes not fired